<template>
  <el-container class="app-container">
    <el-aside width="200px">
      <el-menu
        router
        :default-active="$route.path"
        class="el-menu-vertical"
      >
        <el-menu-item index="/todo">
          <el-icon><List /></el-icon>
          <span>任务清单</span>
        </el-menu-item>
        <el-menu-item index="/pomodoro">
          <el-icon><Timer /></el-icon>
          <span>番茄时钟</span>
        </el-menu-item>
        <el-menu-item index="/mood">
          <el-icon><Sunrise /></el-icon>
          <span>心情记录</span>
        </el-menu-item>
      </el-menu>
    </el-aside>
    
    <el-main>
      <router-view></router-view>
    </el-main>
  </el-container>
</template>

<script setup>
import { List, Timer, Sunrise } from '@element-plus/icons-vue'
</script>

<style>
.app-container {
  height: 100vh;
}

.el-menu-vertical {
  height: 100%;
  border-right: none;
}

.el-main {
  background-color: #f5f7fa;
  padding: 20px;
}
</style> 